<form action="/collaboration/reference/process.jsp" method="post">
	<div class="form-line">
		<div class="title">
			<label for="type">Type:</label>
		</div>
		<div class="box">
			<select name="type" id="attrType" onchange="<%=onchangeformjscode%>">
				<option value="0">Article</option>
				<option value="1">Book</option>
				<option value="2">Booklet</option>
				<option value="3">Conference</option>
				<option value="4">Inbook</option>
				<option value="5">Incollection</option>
				<option value="6">Inprodceedings</option>
				<option value="7">Manual</option>
				<option value="8">Mastersthesis</option>
				<option value="9">Misc</option>
				<option value="10">Phdthesis</option>
				<option value="11">Proceedings</option>
				<option value="12">Techreport</option>
				<option value="13">Unpublished</option>
			</select>
		</div>
	</div>
	
	<% String[][] textfields={{"label", r.getLabel()},
							  {"title", r.getTitle()},
							  {"authors", r.getAuthors()},
							  {"booktitle", r.getBooktitle()},
							  {"editor", r.getEditor()},
							  {"publisher", r.getPublisher()},
							  {"organization", r.getOrganization()},
							  {"school", r.getSchool()},
							  {"journal", r.getJournal()},
							  {"year", r.getYear()},
							  {"volume", r.getVolume()},
							  {"number", r.getNumber()},
							  {"pages", r.getPages()},
							  {"month", r.getMonth()},
							  {"note", r.getNote()},
							  {"series", r.getSeries()},
							  {"address", r.getAddress()},
							  {"edition", r.getEdition()},
							  {"isbn", r.getIsbn()},
							  {"howpublished", r.getHowpublished()}};
	
		for (String[] name : textfields) {
	%>
	<div class="form-line field" id="field_<%=name[0]%>">
		<div class="title">
			<label for="<%=name[0]%>"><%=name[0].substring(0,1).toUpperCase()+name[0].substring(1)%>:</label>
		</div>
		<div class="box">
			<input type="text" name="<%=name[0]%>" id="<%=name[0]%>" value="<%=name[1]%>" placeholder="<%=name[0].substring(0,1).toUpperCase()+name[0].substring(1)%>"/>
		</div>
	</div>
	<% } %>
	
	<div class="form-line submit-center">
		<input type="submit" value="Save" />
	</div>
	
</form>
